package com.yicong.ants.bean.me;

import com.cchao.simplelib.util.StringHelper;
import com.yicong.ants.bean.base.BaseBean;
import com.yicong.ants.bean.common.PageInfoBean;

import java.util.List;

/**
 * 我的下线 分页列表
 * @author cchao
 * @version 2020-2-4
 */
public class MySubordinateResp extends BaseBean {
    public PageInfoBean pageInfo;
    public String total;
    public String mouth_count;
    public String year_count;
    private List<SubordinateBean> list;

    public MySubordinateResp() {
    }

    public PageInfoBean getPageInfo() {
        return this.pageInfo;
    }

    public String getTotal() {
        return this.total;
    }

    public String getMouth_count() {
        return this.mouth_count;
    }

    public String getYear_count() {
        return this.year_count;
    }

    public List<SubordinateBean> getList() {
        return this.list;
    }

    public void setPageInfo(PageInfoBean pageInfo) {
        this.pageInfo = pageInfo;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public void setMouth_count(String mouth_count) {
        this.mouth_count = mouth_count;
    }

    public void setYear_count(String year_count) {
        this.year_count = year_count;
    }

    public void setList(List<SubordinateBean> list) {
        this.list = list;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MySubordinateResp)) return false;
        final MySubordinateResp other = (MySubordinateResp) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$pageInfo = this.getPageInfo();
        final Object other$pageInfo = other.getPageInfo();
        if (this$pageInfo == null ? other$pageInfo != null : !this$pageInfo.equals(other$pageInfo))
            return false;
        final Object this$total = this.getTotal();
        final Object other$total = other.getTotal();
        if (this$total == null ? other$total != null : !this$total.equals(other$total))
            return false;
        final Object this$mouth_count = this.getMouth_count();
        final Object other$mouth_count = other.getMouth_count();
        if (this$mouth_count == null ? other$mouth_count != null : !this$mouth_count.equals(other$mouth_count))
            return false;
        final Object this$year_count = this.getYear_count();
        final Object other$year_count = other.getYear_count();
        if (this$year_count == null ? other$year_count != null : !this$year_count.equals(other$year_count))
            return false;
        final Object this$list = this.getList();
        final Object other$list = other.getList();
        if (this$list == null ? other$list != null : !this$list.equals(other$list)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MySubordinateResp;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $pageInfo = this.getPageInfo();
        result = result * PRIME + ($pageInfo == null ? 43 : $pageInfo.hashCode());
        final Object $total = this.getTotal();
        result = result * PRIME + ($total == null ? 43 : $total.hashCode());
        final Object $mouth_count = this.getMouth_count();
        result = result * PRIME + ($mouth_count == null ? 43 : $mouth_count.hashCode());
        final Object $year_count = this.getYear_count();
        result = result * PRIME + ($year_count == null ? 43 : $year_count.hashCode());
        final Object $list = this.getList();
        result = result * PRIME + ($list == null ? 43 : $list.hashCode());
        return result;
    }

    public String toString() {
        return "MySubordinateResp(pageInfo=" + this.getPageInfo() + ", total=" + this.getTotal() + ", mouth_count=" + this.getMouth_count() + ", year_count=" + this.getYear_count() + ", list=" + this.getList() + ")";
    }

    public static class SubordinateBean {

        String mobile;
        String avatar;
        String id_card_name;
        int card_type;
        String card_type_text;

        public SubordinateBean() {
        }

        public String getId_card_name() {
            if (StringHelper.isEmpty(id_card_name)) {
                return "未绑卡新用户";
            }
            return id_card_name;
        }

        public String getMobile() {
            return this.mobile;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public int getCard_type() {
            return this.card_type;
        }

        public String getCard_type_text() {
            return this.card_type_text;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setId_card_name(String id_card_name) {
            this.id_card_name = id_card_name;
        }

        public void setCard_type(int card_type) {
            this.card_type = card_type;
        }

        public void setCard_type_text(String card_type_text) {
            this.card_type_text = card_type_text;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof SubordinateBean)) return false;
            final SubordinateBean other = (SubordinateBean) o;
            if (!other.canEqual((Object) this)) return false;
            final Object this$mobile = this.getMobile();
            final Object other$mobile = other.getMobile();
            if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile))
                return false;
            final Object this$avatar = this.getAvatar();
            final Object other$avatar = other.getAvatar();
            if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
                return false;
            final Object this$id_card_name = this.getId_card_name();
            final Object other$id_card_name = other.getId_card_name();
            if (this$id_card_name == null ? other$id_card_name != null : !this$id_card_name.equals(other$id_card_name))
                return false;
            if (this.getCard_type() != other.getCard_type()) return false;
            final Object this$card_type_text = this.getCard_type_text();
            final Object other$card_type_text = other.getCard_type_text();
            if (this$card_type_text == null ? other$card_type_text != null : !this$card_type_text.equals(other$card_type_text))
                return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof SubordinateBean;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            final Object $mobile = this.getMobile();
            result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
            final Object $avatar = this.getAvatar();
            result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
            final Object $id_card_name = this.getId_card_name();
            result = result * PRIME + ($id_card_name == null ? 43 : $id_card_name.hashCode());
            result = result * PRIME + this.getCard_type();
            final Object $card_type_text = this.getCard_type_text();
            result = result * PRIME + ($card_type_text == null ? 43 : $card_type_text.hashCode());
            return result;
        }

        public String toString() {
            return "MySubordinateResp.SubordinateBean(mobile=" + this.getMobile() + ", avatar=" + this.getAvatar() + ", id_card_name=" + this.getId_card_name() + ", card_type=" + this.getCard_type() + ", card_type_text=" + this.getCard_type_text() + ")";
        }
    }
}
